home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / Tool Chest / Development Platforms / MPW Related / MPW Interfaces / CIncludes / TerminalTools.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-17  |  1.9 KB  |  114 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        TerminalTools.h
  3.  
  4.     Copyright:    © 1983-1993 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Version:    System 7.1 for ETO #11
  8.     Created:    Tuesday, March 30, 1993 18:00
  9.  
  10. */
  11.  
  12. #ifndef __TERMINALTOOLS__
  13. #define __TERMINALTOOLS__
  14.  
  15. #ifndef __DIALOGS__
  16. #include <Dialogs.h>
  17. #endif
  18.  
  19. #ifndef __TERMINALS__
  20. #include <Terminals.h>
  21. #endif
  22.  
  23.  
  24. enum {
  25.  
  26.  
  27. #define tdefType 'tdef'
  28. #define tvalType 'tval'
  29. #define tsetType 'tset'
  30. #define tlocType 'tloc'
  31. #define tscrType 'tscr'
  32. #define tbndType 'tbnd'
  33. #define tverType 'vers'
  34.  
  35. /* messages */
  36.  
  37.  tmInitMsg = 0,
  38.  tmDisposeMsg = 1,
  39.  tmSuspendMsg = 2,
  40.  tmResumeMsg = 3,
  41.  tmMenuMsg = 4,
  42.  tmEventMsg = 5,
  43.  tmActivateMsg = 6,
  44.  tmDeactivateMsg = 7,
  45.  tmGetErrorStringMsg = 8,
  46.  
  47.  tmIdleMsg = 50,
  48.  tmResetMsg = 51,
  49.  
  50.  tmKeyMsg = 100,
  51.  tmStreamMsg = 101,
  52.  tmResizeMsg = 102,
  53.  tmUpdateMsg = 103,
  54.  tmClickMsg = 104,
  55.  tmGetSelectionMsg = 105,
  56.  tmSetSelectionMsg = 106,
  57.  tmScrollMsg = 107,
  58.  tmClearMsg = 108
  59. };
  60. enum {
  61.  tmGetLineMsg = 109,
  62.  tmPaintMsg = 110,
  63.  tmCursorMsg = 111,
  64.  tmGetEnvironsMsg = 112,
  65.  tmDoTermKeyMsg = 113,
  66.  tmCountTermKeysMsg = 114,
  67.  tmGetIndTermKeyMsg = 115,
  68.  
  69. /* messages for validate DefProc    */
  70.  tmValidateMsg = 0,
  71.  tmDefaultMsg = 1,
  72.  
  73. /* messages for Setup DefProc    */
  74.  tmSpreflightMsg = 0,
  75.  tmSsetupMsg = 1,
  76.  tmSitemMsg = 2,
  77.  tmSfilterMsg = 3,
  78.  tmScleanupMsg = 4,
  79.  
  80. /* messages for scripting defProc    */
  81.  tmMgetMsg = 0,
  82.  tmMsetMsg = 1,
  83.  
  84. /* messages for localization defProc  */
  85.  tmL2English = 0,
  86.  tmL2Intl = 1
  87. };
  88.  
  89. struct TMSearchBlock {
  90.  StringHandle theString;
  91.  Rect where;
  92.  TMSearchTypes searchType;
  93.  ProcPtr callBack;
  94.  short refnum;
  95.  struct TMSearchBlock *next;
  96. };
  97.  
  98. typedef struct TMSearchBlock TMSearchBlock;
  99. typedef TMSearchBlock *TMSearchBlockPtr;
  100.  
  101. struct TMSetupStruct {
  102.  DialogPtr theDialog;
  103.  short count;
  104.  Ptr theConfig;
  105.  short procID;    /* procID of the tool */
  106. };
  107.  
  108. typedef struct TMSetupStruct TMSetupStruct;
  109. typedef TMSetupStruct *TMSetupPtr;
  110.  
  111.  
  112.  
  113. #endif
  114.